/* ========================================================================= */
/* ------------------------------------------------------------------------- */
/*!
  \file			mw_stylesheets.h
  \date			Sep 2011
  \author		TNick

  \brief		Contains the definition for ... in MainWindow


  Copyright (c) 2011, Nicu Tofan
 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
	* Redistributions of source code must retain the above copyright
	  notice, this list of conditions and the following disclaimer.
	* Redistributions in binary form must reproduce the above copyright
	  notice, this list of conditions and the following disclaimer in the
	  documentation and/or other materials provided with the distribution.
	* Neither the name of the copyright holder nor the
	  names of its contributors may be used to endorse or promote products
	  derived from this software without specific prior written permission.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS" AND
 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL NICU TOFAN BE LIABLE FOR ANY
 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

*/
/* ------------------------------------------------------------------------- */
/* ========================================================================= */
#ifndef __MAINWINDOW_STYLESHEETS_INC__
#define __MAINWINDOW_STYLESHEETS_INC__
//
//
//
//
/*  INCLUDES    ------------------------------------------------------------ */


namespace Ui {
class MainWindow;
}

#include	<main.h>

#include	<QObject>
#include    <QAction>


/*  INCLUDES    ============================================================ */
//
//
//
//
/*  CLASS    --------------------------------------------------------------- */

/// allows the customisation of the apparence of widgets
/**
*	Style sheets are another implementation of a
*	<a href="http://doc.qt.nokia.com/latest/stylesheet.html">Qt feature</a>
*	that allows the customisation of "the apparence of widgets
*	in addition to what is already possible by subclassing
*	<a href="http://doc.qt.nokia.com/latest/qstyle.html">QStyle</a>
*	(partially exposed in the \ref ui_templates "User interface templates").
*
*	Styles sheets are textual specifications that can be set by browsing and
*	loading a file by the user or by choosing a file already present
*	in the plug-ins folder.
*
*	To understand the concepts and implementation of the style sheets,
*	please read <a href="http://doc.qt.nokia.com/latest/stylesheet.html">
*	Qt specification</a>.
*
*/
class	MW_StyleSheets : public QObject		{
	Q_OBJECT

	friend class MainWindow;

	//
	//
	//
	//
	/*  FUNCTIONS    ------------------------------------------------------- */

public:

	MW_StyleSheets		() ;
	~MW_StyleSheets		() ;


protected:

	/// connects the actions with designed slots
	void	initStyleSheets			(Ui::MainWindow * lc_ui);

	/// actual loading for style sheets
	void    _loadStySh              (QString fileName);



private slots:

	/// removes the color decoration that may have been previously loaded
	void    slot_No_skin            ( void );

	/// loads color decoration from a file (the user needs to browse)
	void    slot_LoadStySh          ( void );

	/// change the color scheme of the GUI
	void    slot_SkinChange         (QAction* p_active);

	/*  FUNCTIONS    ======================================================= */
	//
	//
	//
	//

};	/* class	MW_StyleSheets */
/*  CLASS    =============================================================== */
//
//
//
//
#endif // __MAINWINDOW_STYLESHEETS_INC__
/* ------------------------------------------------------------------------- */
/* ========================================================================= */
